
/*
 * Copyright 2008 Friendster Inc.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
 
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the License.
*/

using System;
using System.Collections.Generic;
using System.Text;
using Friendster.Web;

namespace Friendster.Web.Configuration
{
    /// <summary>
    /// This also a wrapper class created to make the application development easy for developers,
    /// who are familiar with the facebooks's .NET API.
    /// </summary>
    public sealed class FriendsterServerSession
    {
        // Fields
        private FriendsterApplication application;

        // Methods
        /// <summary>
        /// Constructor
        /// </summary>
        public FriendsterServerSession()
        {
            this.application = new FriendsterApplication();
        }

        // Properties
        /// <summary>
        /// Returns the Application Key of current application
        /// </summary>
        public string ApplicationKey
        {
            get
            {
                return this.application.ApplicationKey;
            }
        }
        /// <summary>
        /// Returns the Secret Key of current application.
        /// </summary>
        public string Secret
        {
            get
            {
                return this.application.Secret;
            }
        }
        /// <summary>
        /// Returns the current established Session value
        /// </summary>
        public string SessionKey
        {
            get
            {
                return this.application.Session;
            }
        }
        /// <summary>
        /// Returns the ID of current logged in user.
        /// </summary>
        public string UserID
        {
            get
            {
                return this.application.UserID;
            }
        }
        /// <summary>
        /// Returns the Current Aplication Name.
        /// </summary>
        public string ApplicationName
        {
            get
            {
                return this.application.ApplicationName;
            }
        }
    }
}
